x86_emulate: INS/OUTS need Mov attribute to force writeback (since
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Mar 2008 11:47:40 +0000 (11:47 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 3 Mar 2008 11:47:40 +0000 (11:47 +0000)
commitaa92127b227c6369a78c0fb56ca81dc0399998de
treef9e52669ec2a56bcff5f55da5c499c619dad4853
parent4d5bf67dd1df3df21e087036dffe1dbd7b2d709b
x86_emulate: INS/OUTS need Mov attribute to force writeback (since
dst.orig_val is not initialised). Also, Mov attribute on cmpxchg is
not necessary -- when destination is memory (i.e., successful cmpxchg)
then dst.orig_val is already correctly filled in. In case that
dst.orig_val == dst.val then the instruction linearises at the point
we first read the destination (and initialised dst.orig_val).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/x86_emulate.c